package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wlyuan.open.scanner.domain.address.Address;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjie
 * @since 2022-09-23
 */
@Data
@TableName("TMS_MSupplier")
@ApiModel(value = "SupplierDO对象", description = "")
public class SupplierDO implements Serializable {


    private static final long serialVersionUID = 980988948906940143L;
    @TableId(value = "Supplier_ID", type = IdType.AUTO)
    private Long supplierId;

    @ApiModelProperty("邀请的公司ID")
    private Long supplierOwnercompanyid;

    @ApiModelProperty("承运方公司ID")
    private Long supplierCompanyid;

    @ApiModelProperty("状态：1同意、2拒绝、0待处理邀请、待处理申请--承运方管理；10 建立上下游初始关系(分享邀请码邀请承运方)")
    private Long supplierStatus;

    @ApiModelProperty("申请处理者")
    private Long supplierProcessor;

    @ApiModelProperty("邀请词")
    private String supplierWelcome;

    private Long supplierCreator;

    private LocalDateTime supplierInserttime;

    private Long supplierUpdater;

    private LocalDateTime supplierUpdatetime;

    @ApiModelProperty("0 启用 1禁用")
    private Integer supplierInvalid;

    private String supplierComments;

    @ApiModelProperty("承运方公司编号")
    private String supplierClientcode;

    @ApiModelProperty("是否开启对账 0.是 1.否")
    private Integer supplierAutobalance;

    @ApiModelProperty("承运方简称")
    private String supplierShortname;

    @ApiModelProperty("使用热度")
    private Long supplierHeat;

    @ApiModelProperty("是否移动端邀请（0否；1是）")
    private Integer supplierType;

    private Long optStatus;

    private String supplierGuid;

    private LocalDateTime supplierStatustime;


    @TableField(exist = false)
    private String contactMobile;
    @TableField(exist = false)
    private String contactEmail;
    @TableField(exist = false)
    private String contactName;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private Integer personal;
    @TableField(exist = false)
    private Integer type;
    @TableField(exist = false)
    private String tenantName;

    @TableField(exist = false)
    private List<Address> stationList;

    @TableField(exist = false)
    private String raw;

    @TableField(exist = false)
    private Integer companyStatus;
}
